/**
 * Created by apple on 2017/7/23.
 */
import * as actionTypes from '../constants/userinfo';

const initialState = {};
//第一步:定义规则.
export default function userinfo(state = initialState, action) {
  switch (action.type) {
    case actionTypes.USERINFO_LOGIN:
      console.log(action);
      return action.data;
    case actionTypes.UPDATE_CITYNAME:
      console.log(action);
      return action.data;
    default:
      return state
  }
}


